<?php

namespace app\common\Model;

use think\Model;

class ShaohuoProblem extends Model
{
    //状态:0为禁用,1为有效,2为删除
    const STATUS_FORBID = 0;
    const STATUS_NORMAL = 1;
    const STATUS_DELETE = 2;

    /**
     * 题目类型
     * @var array
     */
    public $_type = [
        0 => '单选题',
        1 => '多选题'
    ];
    /**
     * 题目状态
     * @var array
     * 状态:0为禁用,1为有效,2为删除
     */
    public $_status = [
        1 => '正常',
        0 => '禁用',
        2 => '删除'
    ];
    //可排序字段
    public $sort_field = [
        'sp_id',
        'title',
        'type',
        'create_time',
        'options',
        'status',
        'answer'
    ];
}